package com.candy.candylog.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @author suYanLong
 * @date 2022年10月14日 14:23
 */
@Getter
@Setter
public class LogEvent extends ApplicationEvent {

    private Object data;

    public LogEvent(Object source, Object data) {
        super(source);
        this.data = data;
    }

    public static class LogLinkEvent extends LogEvent {

        public LogLinkEvent(Object source, Object data) {
            super(source, data);
        }

    }

}
